package com.yan.demo;

import com.yan.domain.Student1;

import java.util.Scanner;

public class MainApp {
    public static final Scanner INPUT = new Scanner(System.in);

    public static void main(String[] args) {
        System.out.println("请输入学生编号");
        String sid = INPUT.next();
        System.out.println("请输入学生姓名");
        String name = INPUT.next();
        System.out.println("请输入学生性别");
        String sex = INPUT.next();
        System.out.println("请输入学生身高");
        double high = INPUT.nextDouble();
        System.out.println("请输入学生年龄");
        int age = INPUT.nextInt();
        Student1 stu1 = new Student1(sid, name, sex, high, age);
        stu1.getInfo();
    }
}
